package com.lilosoft.business.cga.service;

import com.lilosoft.business.cga.dao.TemporaryProjectMapper;
import com.lilosoft.business.cga.models.TemporaryProject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 小峰
 * Date: 2019-09-05
 * Time: 19:37
 */
@Service
public class TemporaryProjectService {

    @Autowired
    private TemporaryProjectMapper temporaryProjectMapper;

    public TemporaryProject selectByProjectNO(String projectNO){
        List<TemporaryProject> temporaryProjects = temporaryProjectMapper.selectByProjectNO(projectNO);
        if(temporaryProjects !=null && temporaryProjects.size()>0){
            return temporaryProjects.get(0);
        }
        return null;
    }
}
